﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CRMMaster.Master" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="CRM.Report" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCloudControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.XtraReports.v11.1.Web, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraReports.Web" tagprefix="dx" %>
<%@ Register src="Email.ascx" tagname="Email" tagprefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
#reportContainer
{
    margin-top:20px;
    width:100%;
}
#leftReport
{
    float:left;
    width:250px;
    margin-top:10px;
}
#leftReport >div
{
    padding:10px;
    border:solid 1px #DCDCDC;
    margin-bottom:10px;
}
#reportViewer
{
    margin-left:260px;
    padding:10px;
    border:solid 1px #DCDCDC;
}
</style>
    <p>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" 
            DataFile="~/App_Data/Cloud.xml" XPath="Continents/Continent">
        </asp:XmlDataSource>
    </p>
    <p>
        <dx:ASPxCloudControl ID="ASPxCloudControl1" runat="server" 
            DataSourceID="XmlDataSource1">
            <RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties></dx:RankProperties>
<dx:RankProperties ForeColor="Red" ItemBeginEndTextColor="Yellow" ValueColor="Blue"></dx:RankProperties>
</RankProperties>
        </dx:ASPxCloudControl>
    </p>
    <div id="reportContainer">
    <div id="leftReport">
        <dx:ReportParametersPanel ID="ReportParametersPanel1" runat="server" 
            ReportViewerID="ReportViewer1" Width="223px">
        </dx:ReportParametersPanel>
        <dx:ReportDocumentMap ID="ReportDocumentMap1" runat="server" 
            ReportViewerID="ReportViewer1">
        </dx:ReportDocumentMap>
        <br />
        </div>
    <div id="reportViewer">
    
        <dx:ReportToolbar ID="ReportToolbar1" runat="server" 
            ReportViewerID="ReportViewer1" ShowDefaultButtons="False" 
            style="margin-left: 0px">
            <Items>
                <dx:ReportToolbarButton ItemKind="Search" />
                <dx:ReportToolbarSeparator />
                <dx:ReportToolbarButton ItemKind="PrintReport" />
                <dx:ReportToolbarButton ItemKind="PrintPage" />
                <dx:ReportToolbarSeparator />
                <dx:ReportToolbarButton Enabled="False" ItemKind="FirstPage" />
                <dx:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" />
                <dx:ReportToolbarLabel ItemKind="PageLabel" />
                <dx:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
                </dx:ReportToolbarComboBox>
                <dx:ReportToolbarLabel ItemKind="OfLabel" />
                <dx:ReportToolbarTextBox IsReadOnly="True" ItemKind="PageCount" />
                <dx:ReportToolbarButton ItemKind="NextPage" />
                <dx:ReportToolbarButton ItemKind="LastPage" />
                <dx:ReportToolbarSeparator />
                <dx:ReportToolbarButton ItemKind="SaveToDisk" />
                <dx:ReportToolbarButton ItemKind="SaveToWindow" />
                <dx:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
                    <elements>
                        <dx:ListElement Value="pdf" />
                        <dx:ListElement Value="xls" />
                        <dx:ListElement Value="xlsx" />
                        <dx:ListElement Value="rtf" />
                        <dx:ListElement Value="mht" />
                        <dx:ListElement Value="html" />
                        <dx:ListElement Value="txt" />
                        <dx:ListElement Value="csv" />
                        <dx:ListElement Value="png" />
                    </elements>
                </dx:ReportToolbarComboBox>
            </Items>
            <styles>
                <LabelStyle><Margins MarginLeft='3px' MarginRight='3px' /></LabelStyle>
            </styles>
        </dx:ReportToolbar> 
    <dx:ReportViewer ID="ReportViewer1" runat="server" 
        Report="<%# new CRM.XtraReport() %>" ReportName="CRM.XtraReport">
    </dx:ReportViewer>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc1:Email ID="Email1" runat="server" />
</asp:Content>
